/**
 * 
 */
package com.igatewebsol.service;

import java.util.ArrayList;

import com.igatewebsol.actionforms.HotelAccomdationCategoryBean;
import com.igatewebsol.actionforms.HotelAccomdationTypeBean;
import com.igatewebsol.actionforms.HotelCurrencyTypeBean;
import com.igatewebsol.actionforms.HotelGroupBean;
import com.igatewebsol.actionforms.HotelMainBean;
import com.igatewebsol.common.DAOFactory;
import com.igatewebsol.dao.HotelDAO;
import com.igatewebsol.daoimpl.HotelDAOImpl;

/**
 * @author aravind rapuru
 *
 */
public class HotelService {
	HotelDAO hotelDAO= new HotelDAOImpl();
	
	public ArrayList<HotelMainBean> insertHotelDetails(){
		return null;
	}
	
	public int createhotelgroup(HotelGroupBean hGroupBean){
		int insertCount=hotelDAO.createhotelgroup(hGroupBean);
		System.out.println(hotelDAO);
		return insertCount;
	}

	public ArrayList<HotelGroupBean> getHotelGroupByUserId(String username) {
		ArrayList<HotelGroupBean> hotelgrpList= hotelDAO.getHotelGroupByUserId(username);
		return hotelgrpList;
	}

	public int createHotelCurrencyType(HotelCurrencyTypeBean hotelCurrencyTypeBean) {
		int insertCount=hotelDAO.createHotelCurrencyType(hotelCurrencyTypeBean);
		System.out.println(hotelDAO);
		return insertCount;
	}

	public ArrayList<HotelCurrencyTypeBean> getHotelCurrencyTypeList() {
		ArrayList<HotelCurrencyTypeBean> hList=hotelDAO.getHotelCurrencyTypeList();
		return hList;
	}

	public ArrayList<HotelAccomdationTypeBean> gethotelAccodTypeList() {
		ArrayList<HotelAccomdationTypeBean> hList=hotelDAO.gethotelAccodTypeList();
		return hList;
	}

	public ArrayList<HotelAccomdationCategoryBean> getHotelAccodCategoryList() {
		ArrayList<HotelAccomdationCategoryBean> hList=hotelDAO.getHotelAccodCategoryList();
		return hList;
	}

	public int addhotelregisterdetails(HotelMainBean hmainForm) {
		System.out.println("addhotelregisterdetails");
		int insertcount=hotelDAO.addhotelregisterdetails(hmainForm);
		return insertcount;
	}

}
